package cn.yilongquan.mapper;




import cn.yilongquan.system.domain.Permission;
import cn.yilongquan.system.query.PermissionQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

//属于 Spring 的 数据访问层（DAO 层）注解
//标识一个类是负责数据访问的组件，
//即数据访问对象（DAO，Data Access Object）类
@Repository
public interface PermissionMapper {
     List<Permission> findByEmployeeId(Long id);

    Permission findById(Long id);

    List<Permission> findAll();

    void add(Permission permission);

    void update(Permission permission);

    void deleteById(Long id);

    void batchDelete(List<Long> ids);

    List<Permission> pageList(PermissionQuery permissionQuery);

    Permission findSn(String sn);
}